import myaxios from '../MyAxios'
import BASEURL from '../BaseUrl'
const JKTURL = BASEURL.JKTURL

const userApi = {
  
  /**
   * 执行登录业务
   * @param {Object} params { grade_num:xx, user_pwd:xx }
   */
  login(params) {
    return myaxios.post(JKTURL + "/user/login", params);
  },

  register(params) {
    return myaxios.post(JKTURL + "/user/register", params);
  },

  queryPhone(params) {
    return myaxios.get(JKTURL + "/user/phone", params);
  },
  updatePwd(params) {
    return myaxios.post(JKTURL + "/user/updatepwd", params);
  },
}

export default userApi